﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Compass.PlanService.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class changepackinglistplanid : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_PackingLists_MainPlanId_IsDeleted",
                table: "PackingLists");

            migrationBuilder.RenameColumn(
                name: "MainPlanId",
                table: "PackingLists",
                newName: "PlanId");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "PlanId",
                table: "PackingLists",
                newName: "MainPlanId");

            migrationBuilder.CreateIndex(
                name: "IX_PackingLists_MainPlanId_IsDeleted",
                table: "PackingLists",
                columns: new[] { "MainPlanId", "IsDeleted" });
        }
    }
}
